[paket]
tanim   = Hafif PDF ve XPS görüntüleyici
paketci = milisarge
grup    = ofis
url     = https://mupdf.com
arsiv   = ${isim}-${surum}-source

[gerek]
derleme = freetype freeglut glu harfbuzz jbig2dec libjpeg-turbo openjpeg2 libxext gumbo-parser
calisma =

[kaynak]
1       = https://mupdf.com/downloads/archive/mupdf-${surum}-source.tar.lz
dosya   = mupdf.xpm
dosya   = mupdf.desktop

[sha256]
1       = 68dbb1cf5e31603380ce3f1c7f6c431ad442fa735d048700f50ab4de4c3b0f82

[derle]
betik   = rm -rf thirdparty/{freeglut,freetype,harfbuzz,jbig2dec,libjpeg,openjpeg,zlib}
betik   = CFLAGS+=' -fPIC' ; CXXFLAGS+=' -fPIC' ;export CFLAGS CXXFLAGS
betik   = USE_SYSTEM_LIBS='yes' ; export USE_SYSTEM_LIBS
betik   = make build=release libs apps

[pakur]
betik   = install -D -m0755 build/release/mupdf-gl $PKG/usr/bin/mupdf
betik   = install -D -m0755 build/release/mutool $PKG/usr/bin/mutool
betik   = install -D -m0755 build/release/muraster $PKG/usr/bin/muraster
betik   = install -D -m0644 $SRC/mupdf.desktop $PKG/usr/share/applications/mupdf.desktop
betik   = install -D -m0644 $SRC/mupdf.xpm $PKG/usr/share/pixmaps/mupdf.xpm
betik   = rm -rf $PKG/usr/{lib,include}
